keymap: Add a xkb_keymap_num_levels() function

This allows callers to know the maximum number of shift levels of a
single key on a given keymap.

Signed-off-by: Rui Matos <tiagomatos@gmail.com>