NXP-14941: optimize synchronized SchemaManagerImpl.checkDirty