http2: fix premature destroy
Check stream._writableState.finished
instead of stream.writable
as the latter can lead to premature calls to destroy and dropped writes on busy processes.
Fixes: https://github.com/nodejs/node/issues/20750
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines