comp: fix segfault when destroying OpenGL compositor

Closes: monado/monado#41
7 jobs for comp-gl-destroy in 2 minutes and 37 seconds (queued for 11 seconds)
latest