docs: public synchronized static Object allocateNamedLock(String name) {
          Object result = namedLocks.get(name);
          if (result != null) {
              namedLockUseCounts.put(name, namedLockUseCounts.get(name) + 1);
              return result;
          }
          namedLockUseCounts.put(name, 1);
          result = new Object();
          namedLocks.put(name, result);
          return result;
      }