gh-124153: Fix unstable optimization of PyType_GetBaseByToken()
and friends
#50362
Loading
PyType_GetBaseByToken()
and friends
#50362