[v5 08/30] env: Move env_set() out of cmd/nvedit.c and in to env/common.c