Some state primary voters — including the mayor’s son — arrived at polling places in New York City only to discover that their registration had been changed or dropped, forcing them to vote via affidavit ballot.