faulthandler: check PyThreadState_Get() result in dump_tracebacks_later()

Cleanup also the code
1 file changed