If your program wants to use the environment as an out-of-band global var for cross thread communication, you can make your own mutex.