[Bug 171066] endless loop in PyCFunction_Fini()