gh-162647: Fix tkinter mainloop() with Tcl interpreters in different threads (GH-162649)

quit() now stops only the mainloop() of its interpreter, and wakes it up if
it is called from other thread.  An exception raised in a callback is now
only raised by an event loop in the same thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed