core: transaction: remove committed transactions

required to avoid aborting already committed transaction in case of
commit failure of one of the elements.

Change-Id: I70b16025e87ee855ae030ab54dd0035d0cd39c37
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>