Fixing a possible deadlock when calling reinitializable_static