add test for mutex wait
updated pthreads test program