Remove a race condition in ProxyService.

We used a joinable queue, for no particular reason, and we had an
additional second structure to keep track of how many task we had
done. Sadly, this structure could go out of sync with the others
causing a deadlock. Since a joinable queue was not necessary in the
first place, this commit removes it together with the additional
structure.