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.
@jwilla You've looked at this more than most, so are you ok with this change and the response or do you still have concerns? I think it looks reasonable but I don't know where else we touch pessimistic locks.