This code was accidently left over after https://reviews.llvm.org/D141349 and now leads to compilation failure due to missing declaration (since the class has been removed)
Just migrate it by making use of LLVM_THREAD_LOCAL instead.
I am sadly currently not on my Windows machine (or one with a MinGW toolchain set up), so could not test this patch yet, just noticed the failure on an LLVM update in my projects CI. I'd appreciate it if someone could test compilation with MinGW, otherwise I'd do so on Friday.