pthread_key_t cleanup.
pthread_cleanup_[push|pop]