public NodeMutexes lockAndRequireAll(Collection<Node> nodes, Optional<Duration> timeout) {
        return lockAndGetAll(nodes, timeout, true);
    }
Locks all nodes in the given list, in a universal order, and returns the locks and nodes required.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Nodes.java