cache: Properly clean up txn.tmp after a failed commit