[v4 07/24] env: Move env_set() out of cmd/nvedit.c and in to env/common.c