quic: fixup `setSocket` support
Ensures that migration to a new QuicSocket
is working.
This depends on #34618 and #34655, both of which should land first. All but the final three commits in this PR are from those earlier PRs.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines