Changing back to for instead of foreach because list is modifed inside loop

This regression happened 5 days ago with https://github.com/mono/debugger-libs/commit/aef4d48f66df1146b820e5e64aaa2725e646b522 
Problem is that at line 774 list is modified which throws exception in foreach...
Added unit test into MD debugger tests will make pull soon...