imagery: workaround mapserv defer memory leak