check if the thread is finalizing after retaking the GIL
avoid a deadlock with the interpreter head lock and the GIL during finalization
revert tstate_delete_common, since it's pretty much wrong