c# remove element from dictionary while iterating