public boolean hasLock(ApplicationInstanceReference application) {
        return parent.map(p -> p.hasLock(application)).orElseGet(() -> locks.containsKey(application));
    }
Returns true if 1. large locks is enabled, and 2.
{@link #registerLockAcquisition(ApplicationInstanceReference, Runnable) registerLockAcquisition}
has been invoked on any context below the root context that returned true.
orchestrator/src/main/java/com/yahoo/vespa/orchestrator/OrchestratorContext.java