clean
handle pthreadget/setspecific