Can you explain why this code needs to manage an explicit transaction?  Won't auto-commit give the right semantic?

If an explicit transaction is required, it would be better to go through `WT_SESSION::begin_transaction` and friends, which includes error checking.