ptrace: kill __ptrace_detach(), fix ->exit_state check