Cleanup of pthread_key thread-specific data