tdb2: save openhook, allow tdb_get_attribute() on it.