Couldn't we validate that `cfg.locking().writeSkewCheck() && cfg.transaction().lockingMode() == LockingMode.OPTIMISTIC` when versioning is enabled and only check for `cfg.versioning().enabled()` here?