HORNETQ-1231 listDeliveringdMessagesAsJSON ignores messages that are being consumed

In HorneQ RA if the session is transactional the message is acknowledged before the onMessage() is called. If onMessage() takes long time to finish and during that time the getDeliveringMessage is called, the acked message won't be counted.