Fix sync upload hang with circular item relations (as created by Zutilo)