Merge pull request #12665 from gparker42/no-thread-local-4.0

[4.0][runtime] Don't use C++ thread_local on two old Apple simulators.