See [here](https://github.com/swiftlang/swift-corelibs-foundation/blob/main/Sources/CoreFoundation/CFSocket.c#L121). `__cfSocketTid()` is used for logging, but it assumes that r`_CFThreadRef` is a thread ID, not a thread handle. Noticed this when investigating migrating CoreFoundation to use thread IDs instead of handles. cc @compnerd @HeMet