deduplicate __pthread_self thread pointer adjustment out of each arch