public Lock lock(TYPE key) {
        return lock(key, timeoutMs, TimeUnit.MILLISECONDS);
    }
Locks key. This will block until the key is acquired or the default timeout is reached.
vespajlib/src/main/java/com/yahoo/concurrent/Locks.java