Cache result of rs_has_enfuse() and fix a few file descriptor leaks.