allow cursors to close without a live txn or db
use autotxn to open db if given a read-only txn