Clean up temp dirs from package downloads faster

Rather than waiting until process end.

Also, ensure that simultaneous calls to files.rm_recursive (possible now
that they can yield) can't throw ENOENT.

Fixes #3324.