gl: set context gl_flavor earlier

During cairo_gl_context initialization, we need to set gl_flavor
field earlier, because we depend on this flag to query other gl
characters.