tdb_compat: make tdb2s temporarily read-only for tdb_traverse_read()