Improve read and write byte count accuracy

Previously, read(2) and write(2) count arguments were ignored
and a filesystem-level du(1) was used. This patch improves the
accuracy of the actual size bytes going through the read and
write syscalls.

Also, tracefmt has been sped up and fixed a bug where syscalls
were cached.