mesa/glthread: restore the dispatch table when incompatible gl calls are detected