SERVER-10085 do not hold bgsync mutex while waiting for the network