public Lock lock(ApplicationId application, Duration timeout) {
        try {
            return db.lock(lockPath(application), timeout);
        }
        catch (UncheckedTimeoutException e) {
            throw new ApplicationLockException(e);
        }
    }
Acquires the single cluster-global, reentrant lock with the specified timeout for active nodes of this application
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CuratorDb.java