Draft: wayland: Delay applying surface state until the buffer is ready
If a client provides a buffer for whom rendering commands take a while to complete, that may stall compositor's rendering commands due to implicit sync.
With this change, kwin will wait until the dma-buf is readable to apply the pending state.
Inspired by https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1880