a lock is for protecting