Make g_setenv() assert() or warn() when used after threads started
@hadess
Submitted by Bastien Nocera Link to original bug (#702111)
Description
To avoid the same sort of problem as in bug 701322, g_setenv() should warn if called after a glib thread was started. This won't fix problems with applications that use non-glib threads, but should warn at least in this more common case.