util:exclusive-lock($nodes as node()*, $expression as item()*) item()*
Puts an exclusive lock on the owner documents of all nodes in the first argument $nodes. Then evaluates the expressions in the second argument $expression and releases the acquired locks after their completion.
$nodes
The nodes whose owning documents will have exclusive locks set.
$expression
The expression(s) that are to be evaluated before the acquired locks are released.
Returns the results of the evaluated expression(s)