Fix a bug with removal and unrelated orphan packages

They would still be put in the "to_keep" set, and trigger a solver failure
Merge pull request #1451 from OCamlPro/fix-orphans

Fix a bug with removal and unrelated orphan packages