evdev: Add API to set the xkb layout index

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