jump back to child after getting SIGALRM

This should work better now, so we should be able to jump directly back into
the same child and just do a different syscall.
flush previous syscall output when we get SIGALRM
fix accounting so it counts syscalls before we do the syscall.

Otherwise when we jump back after sigalrm, we don't increment the counters.