TrigPSC: check if Python interpreter is used before calling BeforeFork
Check if the Python interpreter is actually used before calling
PyOS_BeforeFork(). This mirrors what is already done for
PyOS_AfterFork().
Fixes ATR-23556.
Check if the Python interpreter is actually used before calling
PyOS_BeforeFork(). This mirrors what is already done for
PyOS_AfterFork().
Fixes ATR-23556.