On migration 2 different images can end up with same content addressable ID, meaning `SetParent` will be called multiple times. Previous version did not clear the old in-memory reference. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> Upstream-commit: 4852932494b6e13b669937c0e27f0434513f5ad5 Component: engine