nitc: use pthread_key_create and others when __thread is not available