c# remove key from dictionary while iterating