[GL] Fixed GL.WaitSync return value

Closes issue #168