pthreads: got rid of the redundant waiting counter
pthreads: simplified thread name creation
pthreads: pthread_setname_np now supports non-pthread tasks