Follow-up from #28925.
We modify clean_stale_files so that the incremental install logic of sagelib can work even if we want to install namespace packages in addition to sagelib, such as:
Depends on #32874
Component: refactoring
Branch/Commit: u/mkoeppe/out_of_tree_namespace @ d825e55
Reviewer: Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/30152