basis.entity: fix warnings on entity destroy and all.sync([])