Extract `session` and `stream` in `quic/core.js` to make the code easier to read. refer to [#33928](https://github.com/nodejs/node/pull/33928).