Don't call threadcheck directly after adding a thread init.  It can cause problems if a partially loaded dynamic module registers an init which relies on it.