blktrace: fix bugs in accounting