Optimise computation of orphan packages

Computing the reverse dependency cone even when unnecessary, and on all uninstalled packages,
was taking a fair amount of time on my lower-end machine.