gh-101476: Use _PyType_GetModuleState where applicable (#102188)

9 files changed