code: private static Object getLockObject(Object key) {
      int hc = key.hashCode();
      return KEY_LOCKS[hc & KEY_LOCKS_MASK];
    }
docs: Simulate locking by key, use the hash code to spread and avoid lock contention.
  The additional locking we introduce here is currently run synchronously inside the
  entry mutation operation.