[PATCH 2/6] qemuMigrationCookieNew: Refactor allocation and cleanup