gh-124153: Remove _PyType_GetModuleByDef2 private function
#124261
Merged
_PyType_GetModuleByDef2 private function
#124261