changed return value to 0 on lookup fail in pthread_self()