Shouldn't we also check that the locking mode is OPTIMISTIC?