Locking versions in the metadata