std.Io.Threaded: rework cancelation and groups

The goal of this internal refactor is to fix some bugs in cancelation
and allow group tasks to clean up their own resources eagerly. The
latter will become a guarantee of the `std.Io` interface, which is
important so that groups can be used to "detach" tasks.

This commit changes the API which POSIX system calls use internally (the
functions formerly called `beginSyscall` etc), but does not update the
usage sites yet.
0da5d5f150Matthew Lugg committed on 1/3/2026, 3:45:07 PMparent0422619
1 file changedLine totals unavailable