c# remove dictionary item in foreach