BZ-1175417 - Engine configured with pessimistic locking throws javax.persistence.OptimisticLockException