private Node requireNode(String hostname) {
        return node(hostname).orElseThrow(() -> new NoSuchNodeException("No node with hostname '" + hostname + "'"));
    }
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