We call gdk_wayland_window_hide_surface when the window gets destroyed, and in this case, the frame clock might not exist anymore. This was showing up in the displayclose testcase.