[router-act] Fixes related to segment inlining (#81896)
While working on a feature called segment inlining, I had to make some
changes to the internal `act` function we use for testing the Next.js
client.
Descriptions are given in each commit message.