patch 8.2.1471: :const only locks the variable, not the value

Problem:    :const only locks the variable, not the value.
Solution:   Lock the value as ":lockvar 1 var" would do. (closes #6719)
diff --git a/src/evalvars.c b/src/evalvars.c
index 2f4a11b..4ebcb45 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -3087,7 +3087,7 @@
     }
 
     if (flags & LET_IS_CONST)
-	di->di_tv.v_lock |= VAR_LOCKED;
+	item_lock(&di->di_tv, 1, TRUE);
 }
 
 /*