mesa: fix some potential state-restore issues in pop_texture_group()