set lock.