ISPN-4565 ReplTotalOrderVersionedStateTransferTest.testStateTransfer ran...

...dom failures

* fix NPE:CommitCommand should not trigger the PrepareCommand.
* fix timeout: CacheTopologyControlCommand should be processed in the deliver thread

https://issues.jboss.org/browse/ISPN-4565
I don't think so. It was outside the if.
also, I think the ```StateTransferLock``` is used for non-TO caches as well.