cairo: Avoid using cairo_t for a destroyed cairo_surface_t.