Set the TXN_ERROR flag for errors in any transactional call, not just updates.

refs #969
Handle deadlocks gracefully in the checkpoint tester.

refs #969