gl/wayland: use multi-threaded safe event wayland API