ingest: ingest into a copy registry to allow concurrent use of actual registry

This is done through the use of a context manager that moves the copy
back when everything is done.