fixed bug where ordering was not guaranteed when MessageAcker#delivered() was called from multiple threads (using TreeSet to order)