make sure gl textures are deleted by render thread

credits to @popcornmix for tracking this down. The destructor of CImageLoader called from a job tried to delete gl textures.