common: Check wether to set the modified flag in nve_set.
* common/name-value.c (nvc_set): Factor code out to ... (nve_set): here.