Handle multiple response copies for _purged_infos API

Previously, the new `_purged_infos` endpoint, would return the same purge
requests multiple times when it received multiple responses from workers.
Instead, we should uniquify the same requests, and return just a single copy of
the purge request to the user.

Add a unit test to check multiple copies being returned and properly handling
set updating and finalizing.
1 file changed