Closes #22869: Move PyOS_CheckStack back to pythonrun.c