have safeRimRafSync handle ENOENT messages as well, and fix potential async issues (fix #3875)