mesa: replace some API_OPENGL_CORE checks with _mesa_is_desktop_gl