glthread/thread: avoid compiler warning