The Linux/posix equivalent of TLSAlloc and friends are pthread_key_create and pthread_get/setspecific