[CC] Allow scheduling sequential tasks via setImmediate (#102505)
Adds an alternative sequential task scheduler that uses `setImmediate`
instead of `setTimeout`.
The scheduler can be controlled via
`experimental.sequentialTaskScheduling: 'unstable_immediate'`. This is
mainly intended for experimentation with portability across runtimes
that aren't Node.js.
There's a slight problem with using `setImmediate` -- React's IO
tracking does not consider it IO, and we need our tasks to be considered
IO. This is handled in #102523.
I've also added variants to some select tests that exercise dev behavior
and prod prerendering/rendering so that we get some e2e coverage of
alternative schedulers. Upstack PRs do the same. If this ends up being
used in any real way, we can e.g. add a proper CI shard that runs on
canary (but not on every PR)