Port the :mod:`_thread` extension module to the multiphase initialization API (PEP 489) and convert its static types to heap types.
Port the :mod:`_thread` extension module to the multiphase initialization API (PEP 489) and convert its static types to heap types.