locking on updates