highgui: wayland: support waitKey timeout correctly
highgui: wayland: clean up