transaction: Correctly set the cleanup status

We were wrongly setting the cleanup status not on the removed package,
but on the one that got installed as a replacement.

https://bugs.freedesktop.org/show_bug.cgi?id=79791