code: public final Lock lock(Object key) {
          Lock lock = this.locks.get(key);
          lock.lock();
          return lock;
      }
docs: Lock an object
  @param key The object to lock
  @return The lock(locked) of passed key