docs: public void writeLocks(CmsDbContext dbc) throws CmsException {
  
          if (m_isDirty // only if something changed
              && m_runningInServlet // only if started in run level 4
              && OpenCms.getMemoryMonitor().requiresPersistency()) { // only if persistency is required
  
              List<CmsLock> locks = OpenCms.getMemoryMonitor().getAllCachedLocks();
              m_driverManager.getProjectDriver(dbc).writeLocks(dbc, locks);
              m_isDirty = false;
          }
      }