iolog.c: fix inaccurate clat when replay trace