This allows us to clear up any wayland objects held by clients before eglTerminate that could also hold references.
It also means calling
kwin_wayland --replace doesn't notify clients
about removing every global.
Testing done: Logged out successfully. Though I'm not sure my previous issue happened every time.