tdb2: make tdb1_open use attributes for logging, hash function.