public Optional<NodeMutex> lockAndGet(String hostname) {
        return node(hostname).flatMap(this::lockAndGet);
    }
Returns the unallocated/application lock, and the node acquired under that lock.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Nodes.java