On macOS we must always go through BLI_thread_local_get/set(). Differential Revision: https://developer.blender.org/D3470