Fixed race condition in TransactionalQueue()
Merge pull request #19 from mdevaev/trans-queue-fix

Fixed race condition in TransactionalQueue()