Make the previously loaded artifacts a list rather than an iterator
Summary:
That's needed as we check its contents once per version referenced in the list
of upstream releases.
Test Plan: Running the loader twice on the same module now only loads each artifact once
Differential Revision: https://forge.softwareheritage.org/D413