tdb2: allow nesting of read locks on top of write locks.