fix a bug in second phase of election where we were not handling older versions properly, pass in gtid in second phase of election as well and pass that into acceptPossiblePrimary