[12.x] fs: Backport eadc3850, fix for fsPromises.truncate
Fixes: https://github.com/nodejs/node/issues/34189
fsPromises.truncate() was not closing the opened FileHandle.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines