crypto: fixes performance regression
https://github.com/nodejs/node/commit/e559842188f541b884abff2ffad4d2d3e1b841a6 made writable/readable computed with a legacy mode if the properties are written to.
LazyTransform still unecessarily wrote to these properties causing a performance regression.
Fixes: https://github.com/nodejs/node/issues/31739
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