MODE-2277 Added the ability to avoid performing versioning and locking validations if these are not used in a repository.