mkWeakThreadId (thanks Davean)