common: New function nve_set
* common/name-value.c (nve_set): New.
Taken from 2.2 commit 706adf669173ec604158e4a2f4337e3da6cb1e45