Optionally support pessimistic locking