How to implement pessimistic locking in re-store

DELETE ME