keymap: be more careful in xkb_keymap_unref

To allow calling _unref on the keymap in whatever limbo state it happens
to be in.

Signed-off-by: Ran Benita <ran234@gmail.com>
Add X11 keymap creation function

WIP
Needs --enable-x11 to configure for now.

TODO:
- Change asserts to proper tests.
- Add more asserts.
- Add error messages.
- Add device ID parameter.
- Add a real+vmod -> mask utility.
- Expand tests.
- Document.
- Commit message.

Signed-off-by: Ran Benita <ran234@gmail.com>