docs: private CmsLock getParentFolderLock(String resourceName) {
  
          Iterator<CmsLock> itLocks = OpenCms.getMemoryMonitor().getAllCachedLocks().iterator();
          while (itLocks.hasNext()) {
              CmsLock lock = itLocks.next();
              if (lock.getResourceName().endsWith("/")
                  && resourceName.startsWith(lock.getResourceName())
                  && !resourceName.equals(lock.getResourceName())) {
                  // system locks does not get inherited
                  lock = lock.getEditionLock();
                  // check the lock
                  if (!lock.isUnlocked()) {
                      return lock;
                  }
              }
          }
          return CmsLock.getNullLock();
      }