faulthandler: check PyThreadState_Get() result in dump_tracebacks_later()
faulthandler: check PyThreadState_Get() result in dump_tracebacks_later()

Cleanup also the code

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator