Fix race condition in Candidate election

electionTimer must be set before anything that could call transition