Now that begin/commit_transaction isn't resetting cursors, make test/format more proactive about doing it.