[iOS] Fix: Xcode libc++ doesn't support thread local storage.