public ApplicationMutex lock(ApplicationId application, Duration timeout) {
        return new ApplicationMutex(application, db.lock(application, timeout));
    }
Create a lock with a timeout which provides exclusive rights to making changes to the given application
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/Applications.java