Fix an invalid foreach loop over an unordered_map with deletion inside WiiSockets

Basically the same as PR #402, but sans merge conflicts. Just to get it out of the way.