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>
5 jobs for wip/xkb-cleanup in 9 minutes and 33 seconds (queued for 1 second)