ISPN-4291 Poor REPL state transfer performance with cache stores

https://issues.jboss.org/browse/ISPN-4400

* Skip the cache store iteration if the local node didn't lose any segments
* Move the invalidation after receiving the transaction data, so that write
  commands can be performed in parallel.
well, if you have ```passivation==false && !eviction```, the data container keys will be the same as in persistence (well, not exactly the same because a user can manually evict keys). you can avoid iterating over that keys as well :) 
I'm OK to leave it to another PR