Client: Ensure that wl_surface lives as long as qtquick render thread needs it
wl_surface can be destroyed while qtquick render thread still uses it. That can end up in eglSwapBuffers() using defunct wl_surface, which will eventually lead to a crash due to the compositor posting an error.
This is partially cherry-pick of dff57914
Change-Id: I044f40dd64e6672027a833379b57ccd9973d8305
BUG: 447717