fs: recursion should bail on permission error
When creating directories recursively, the logic should bail immediately on UV_EACCES and bubble the error to the user.
Fixes: #31481 (closed)
CC: @isaacs
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