Finish adding code for lock versioning on Labs, Departments and Institutes