KRACOEUS-8556: Refreshing document pessimistic locks to make sure the document is in sync with the db.

This isn't the most ideal fix, as it doesn't fix the underlying issue.  But will resolve the blocker.
If we delete the lock after the refresh, then there is no need for the document.refreshPessimisticLock? also do we need to remove the the locks from the document, since they are being deleted, or do they get refreshed later in some other fashion?