Port the /proc-based test helpers: thread counts come from
Toolhelp32Snapshot and descriptor counts from GetProcessHandleCount on
Windows. Allowlist Runtime for the Windows target.
Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2):
Runtime;Testing 837 tests, 831 passed, 6 skipped, 0 failed.