test: fix flaky test-http2-session-timeout
Check actual expired time rather than relying on a number of calls to setTimeout()
in test-http2-session-timeout more robust.
Fixes: https://github.com/nodejs/node/issues/20628
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines