iris: avoid use after free in shader destruction