ISPN-3357 Insufficient owners with putIfAbsent during rebalance

https://issues.jboss.org/browse/ISPN-3357

* Set the ignorePreviousValue flag when replicating from the primary owner, and
  respect its value on the backup.
* Also set the ignorePreviousValue flag when retrying the command, as the new
  primary owner might be an old backup owner.

Also branch `t_3357_52` for 5.2.x.