mutex around os.(Get|Set)env to avoid race conditions