mesa: put gl_thread_state inside gl_context to remove pointer indirection