lib/transaction_commit.c: fix a use-after-free in state cb (found by ojab).
lib/transaction_commit.c: fix a use-after-free in state cb (found by ojab).

datenwolf/xbps,stpx/xbps,stpx/xbps,datenwolf/xbps,datenwolf/xbps,ebfe/xbps,stpx/xbps,ebfe/xbps,ebfe/xbps