implement --lock option for updateClient builtin