pthread: initial add
added pthread test case
address comments in PR
more comments
pthread_once in its own file
more comments fixed
more comments fixed
olegs comments
size_t in all places
olegs comments 2
fix