Raise correct exception subclass for nested ro txn.
Environment.begin() test.