Thread-local support for iOS.

iOS now a normal threaded platform.