Backport: Use provided waitUntil for pending revalidates (#74164) (#74573)
This backports https://github.com/vercel/next.js/pull/74164 to leverage
built-in waitUntil if available instead of using the approach that keeps
the stream open until the waitUntil promise resolves.
x-ref: [slack
thread](https://vercel.slack.com/archives/C02K2HCH5V4/p1736211642221149?thread_ts=1734707275.666089&cid=C02K2HCH5V4)