fix dispose order in gifsave
fix dispose order in gifsave

Shut down cgif before we shut down the target it is writing to so that
flush in cgif has somewhere to flusgh to.

See https://github.com/libvips/libvips/discussions/2707

lovell/libvips,lovell/libvips,lovell/libvips,lovell/libvips