Revert to opening new sessions for cursors.  Otherwise we get into trouble when
opening an interator to populate an index, then doing explicit transactions for
each index insertion.  The iterator is reset after each commit :-(