tdb2: set tdb_error() on tdb_transaction_prepare_commit.