evdev: fix a crash when reclaiming devices

That was not how you iterate a list!

https://bugzilla.gnome.org/show_bug.cgi?id=707901