keymap: Add xkb_keymap_mod_get_mask

This is a convenience function to return the xkb_mod_mask_t for a given
modifier. The use for this is so we can find the correct mod mask for
a given modifier when calling XIGrabButton / XIGrabKeycode, or to
decipher device events we get from the server.