Fix spurious syscall tracing after PTRACE_DETACH + PTRACE_ATTACH