stream: fix Duplex._construct race
Ensures that _construct has finished before invoking _destroy.
The 'constructed' property was not properly set to false for both writable and readable state.
Fixes: https://github.com/nodejs/node/issues/34448
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