hg-core: dedup LazyAncestors Iterator impl

… Which has been moved to the vcsgraph crate.

AncestorsIterator cannot yet be removed because it is still being used in
hg-core.
17 jobs for topic/default/vcsgraph-integration in 42 minutes and 41 seconds (queued for 2 seconds)