zink: only remove programs from hash tables on shader deletion if needed

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <!12532>
40 jobs for !12532 with zink-prog in 10 minutes and 17 seconds (queued for 7 seconds)
latest detached
Status Name Job ID Coverage
  Sanity
passed sanity #13107841

00:00:09

 
  Container
passed debian/arm_build #13107844
aarch64

00:00:19

passed debian/x86_build-base #13107842

00:00:14

passed debian/x86_test-base #13107843

00:00:13

passed fedora/x86_build #13107845

00:00:19

passed windows_build_vs2019 #13107846
windows shell 1809 mesa

00:00:10

 
  Container 2
passed debian/android_build #13107851

00:00:21

passed debian/i386_build #13107848

00:00:20

passed debian/ppc64el_build #13107849

00:00:21

passed debian/s390x_build #13107850

00:00:14

passed debian/x86_build #13107847

00:00:20

passed debian/x86_test-gl #13107852

00:00:13

passed debian/x86_test-vk #13107853

00:00:19

passed kernel+rootfs_amd64 #13107854

00:00:13

passed kernel+rootfs_arm64 #13107855
aarch64

00:00:56

passed kernel+rootfs_armhf #13107856
aarch64

00:00:11

 
  Build X86 64
passed debian-clang #13107863

00:09:00

passed debian-clover #13107864

00:01:56

passed debian-clover-testing #13107859

00:01:40

passed debian-gallium #13107860

00:07:43

passed debian-release #13107861

00:03:05

passed debian-testing #13107857

00:02:03

passed debian-testing-asan #13107858

00:02:27

passed debian-vulkan #13107865

00:03:18

passed fedora-release #13107862

00:02:12

 
  Build Misc
passed debian-android #13107867

00:01:18

passed debian-arm64 #13107869
aarch64

00:01:24

passed debian-arm64-asan #13107870
aarch64

00:03:00

passed debian-arm64-build-test #13107871
aarch64

00:01:28

passed debian-armhf #13107868
aarch64

00:01:48

passed debian/arm_test #13107866

00:00:40

passed debian-i386 #13107873

00:01:51

passed debian-mingw32-x86_64 #13107876

00:02:06

passed debian-ppc64el #13107875

00:02:13

passed debian-s390x #13107874
kvm

00:03:59

passed windows-vs2019 #13107872
windows docker 1809 mesa

00:05:17

 
  Layered Backends
passed zink-lvp-deqp 1/2 #13107879

00:01:41

passed zink-lvp-deqp 2/2 #13107880

00:05:32

passed zink-piglit-no_timelines #13107878

00:07:10

passed zink-piglit-timelines #13107877

00:07:10