Use TDB_VOLATILE instead of tdb_set_max_dead()