SERVER-13202 wait for secondary to flush buffer before assuming primaryship