Xlib backend: fix kdeinit crashing