backends: X11: Flush the connection after set_attributes().

Otherwise the window title may stay unchanged util you have
received xevent (if you are using select on the X11 fd).