c# remove from dictionary while iterating