fs: refactor rimraf retry options
This PR implements the changes proposed in https://github.com/nodejs/node/issues/30580.
This PR doesn't quite close out #30580 (closed) though because synchronous retries are not able to be fully implemented just yet (https://github.com/libuv/libuv/pull/2548 should enable that soon though).
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