The node-deps signal tests send SIGINT/SIGTERM as soon as the shim's
`started` marker exists. Both shims wrote the marker and only then
forked `sleep 30 &`. A signal landing in that gap runs the trap with
`$!` still unset, so `kill $!` kills nothing, and a background sleep
forked by a non-interactive sh ignores SIGINT, so the sleep then lives
its full 30 s. `run.alive()` (the job's process group) stays true past
`until()`'s 15 s budget: "Error: timed out" at node-deps.test.mjs:606
(main CI 44835133244, 45002763708).
Fork the sleep first, then write the marker: any signal the test sends
finds `$!` set. Same change in slowPnpm, which has the same order.
Stand-in A/B of the shim under 24-way load: 12/1500 leaked sleeps
before, 0/1500 after.
(cherry picked from commit ff20a3ad8a684ab2edb9d3a40cd5df658bbd6722)