update lock.