Backport repl_location_failures to 1.4

The test currently fails due to code changes in 1.4. retry_exits are not
incremented when a location down message is received. I believe the code
needs to change to do this the way it used to.