don't allow updating a resource if the resource is locked