prevent alias duplicates in vsite_update_7004 #2140

Can be marked fixed after merge.

#2140 

Note: it's definitely a more expensive operation now, but it ran in <30 seconds all the times I tested it locally on scholar database, even when i ran it against all term path aliases-- and in actual environments this will only ever affect a subset of all term paths aliases.