synchronised removal of tree duplicates