JGRP-1785 TOA, inconsistent message delivery

* Synchronization problem allowed messages to be deliver while messages
with smaller sequence number were pending
* Added simple functional tests for TOA

https://issues.jboss.org/browse/JGRP-1785