Thread Part 7:

Fix race between pthread_join and thread exit
Support for thread-specific data