SERVER-8849 read_pref.js failure in RHEL-64bit

Make sure primary node does not change during the entire test.