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.
re: ```removeStaleData```
but isn't what is happen? you are initializing the ```removedSegment``` with integers from 0 to ```numSegment```, and remove the segments you own. And in ```removeStaleData```, you are removing the key if it's segment belongs to ```removedSegment```.
am I missing something?
so, my point, is that you can pass the ```newWriteCh.getSegmentsForOwner(rpcManager.getAddress())``` and remove the key if the key's segment does not belong to.
Now that I'm thinking about it, isn't the ```removedSegments``` also remove the L1 entries? if an entry is in L1, then it does not belong to the segment, and if the segment is new to this node, it will be overwrite, right? If I'm correct, the ```computeStaleL1Segments``` is not needed...