public Lock lock(Path path, Duration timeout, Duration ttl) {
        create(path, ttl);
        Lock lock = locks.computeIfAbsent(path, (pathArg) -> new Lock(pathArg.getAbsolute(), this));
        lock.acquire(timeout);
        return lock;
    }
Create and acquire a re-entrant lock in given path with a TTL
zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java