Use write_trylock_irqsave in ptrace_attach