add mutex around loading of env files