glx/dri3: rework __DRIextension handling