Implement locking for instances.yml