This duplicates `Threads.currentId`