Attempt a retry on with_secondary if there is a replica set reconfiguration.