27949f44dc
Add a thread specific flag to trap the case where pthread_exit() is called from a destructor in violation of the Posix standard.