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