Optionally support pessimistic locking.