use #[thread_local] on Windows
work around yet another MinGW-w64 ASLR bug
auto merge of #17652 : thestinger/rust/thread_local, r=cmr