[PATCHv8] exec: Fix dead-lock in de_thread with ptrace_attach