mesa/st: Fix use-after-free of the draw VS.
If the program with a draw variant gets deleted, it could leave a dangling pointer in st's draw module that would get referenced next state update of a draw fallback.
Fixes a valgrind complaint in piglit's rasterpos test, which is flaky on softpipe (but not due to this).