test: deflake test-http2-empty-frame-without-eof
It may happen that the data in emptyframe.http2
reaches the client even before the client has started sending the request, causing an ERR_HTTP2_STREAM_ERROR
instead. Fix this by making sure the frame is not sent until some data reaches the server.
Observed on windows when working on https://github.com/nodejs/node/pull/42340