configure: MinGW has thread-safe getenv.
* configure.ac: have_thread_safe_getenv=yes with have_w64_system.