xdemos/glsync: check glXMakeCurrent return value