SERVER-16158 make maxSyncSourceLagSecs.js resilient against incorrect primary being elected