Test: various issues with the replication-4.tcl test fixed.

The test actually worked, but vars for master and slave were inverted
and sometimes used incorrectly.
Test: check that replication partial sync works if we break the link.

The test checks both successful syncs and unsuccessful ones by changing
the backlog size.
Version bumped to 2.9.10