Convert old sid-string handling in idmap_tdb2 to a new one