xkb: switch to array index loops to moving pointers

Most similar loops here use a pointer that advances with each loop
iteration, let's do the same here for consistency.

No functional changes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
4 jobs for wip/xkb-cleanup in 1 minute and 27 seconds (queued for 1 second)