another attempt to fix particle-server crash

The old code was stupid and I don't see how it worked at all... the iterator becomes borked after the remove() call...

This new strategy makes a separate list of keys to remove and then removes them without the iterator.