Prevent in-memory serialization of nonleaf nodes when an on-disk upgrade is pending, in order to not confuse the auto upgrade logic in the serialization code