SIGN IN SIGN UP

Close #24784: Fix compilation without thread support

Add "#ifdef WITH_THREAD" around cals to:

* PyGILState_Check()
* _PyImport_AcquireLock()
* _PyImport_ReleaseLock()
V
Victor Stinner committed
92f0113701c6404f9e1ec90e3260084fc6a2ef09
Parent: 647dac9