Republicans and Democrats are gearing up for expensive battles to influence a crop of contests next year that often go unnoticed: secretary of state races.