basis.entity: fix issue with EntitySet.sync