Mostly solved a race condition in the serialization type cache bootstrapping optimization.