pthread: initial add
added pthread test case
address comments in PR
more comments
pthread_once in its own file
more comments fixed