ui: Add a helper to wait on a dmabuf sync
Hi Gerd,
Our goal is to block virtio-gpu driver running on the guest from writing on the buffer that hasn't been completely blitted yet. If we do graphic_hw_gl_block, it will block the next commands from being processed but won't stop the guest fill the scanout buffers and send commands, I think.