lock the document before updating the positions