add lock.