Try to make jstests/replsets/sync2.js more robust and add logging