server: add wl_global_get_version
Add a helper to check the advertised version of a global. This can be handy when checking whether a compositor feature is supported, instead of having to store the version passed to wl_global_create separately.
Signed-off-by: Simon Ser contact@emersion.fr