corrected hthread_self() behaviour