Facilitate nested and named transactions

Ensure nested transactions have isolation levels (and RO/RW) settings at
least as strong as those the original transaction was started with.

Change the interface functions to use suitable transactions.