Refine TclFinalizeThreadData so that the quick-exit optimization really only affects exit.