fix logic bug in getthreadid
[mmh] / uip / empty