tdb: Add another overflow check to tdb_expand_adjust