Even better compatibility for threadId()