prevent data loss while promoting from second replica to owner.

Fixes #2785
you're right. test seems complicated. and it should not be in partition package..

@eminn can you simplify it a bit more?