Fixed lock mode in pessimistic locking test