public Lock lock(ApplicationId id) {
        return curator.lock(lockPath(id), Duration.ofMinutes(1)); // These locks shouldn't be held for very long.
    }
Returns the lock for changing the session status of the given application.
configserver/src/main/java/com/yahoo/vespa/config/server/application/ApplicationCuratorDatabase.java