fs: keep FileHandle alive while stream has ref
The FileHandle can still be used by stream even if close is called on it externally thanks to the reference counting.
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