Added model locks in viewmodelbase