C: convert each %$symref to for (keys %$symref)

Avoid problems with each
Revert "C major change: skip redefinition of internal XS CVs"

This reverts commit c4d49b2a30dde3fc50a00a21eed62afea3ef8e9f.
This broke too many real-world tests, not stable enough yet.