branchcache: gather new obsolete revision in a set
This is part of a series to more clearly split the update in two step. This
will allow us to introduce a fast path during update in a future changeset.
# So GitLab doesn't think we're using tons of Perl*.t -linguist-detectable