Adds a check when taking over a new thread during attach to avoid self-interp when the new thread is the child of a thread that's already been taken over.
Tested with the api.detach_spawn test from #2601 (closed).
Fixes #2688 (closed)
Adds a check when taking over a new thread during attach to avoid self-interp when the new thread is the child of a thread that's already been taken over.
Tested with the api.detach_spawn test from #2601 (closed).
Fixes #2688 (closed)