Fix: attrd: check election status upon loss of a voter to prevent unexpected pending
When a peer is lost, if an election of attrd writer is in progress, we
need to call election_check(), in case this lost peer is the only one
that hasn't voted, otherwise the election would be pending until it's
timed out.