ISPN-4565 ReplTotalOrderVersionedStateTransferTest.testStateTransfer random failures

* fix NPE:CommitCommand should not trigger the PrepareCommand.
* fix timeout: CacheTopologyControlCommand should be processed in the deliver thread