When two or more transactions have the same version, notify all of them

This will allow at least one of them to clear the queue. However,
we still have to ensure that only one thread will commit the data
otherwise bad things can happen.
Attach statistics to the PrepareCommand for Total Order