public Lock lock(ApplicationId id) {
        return database().lock(id);
    }
Returns the lock for changing the session status of the given application.
configserver/src/main/java/com/yahoo/vespa/config/server/application/TenantApplications.java