The `_io` extension module is required to bootstrap Python, so we can safely use internal C APIs. We should use static inlined `_PyModule_GetState` instead of the slower `PyModule_GetState`. <!-- gh-linked-prs --> ### Linked PRs * gh-101470 <!-- /gh-linked-prs -->