fix pthread_setspecific on values of null