Stop threads when attaching to a PID that is the tgid.