When device gets disconnected with outstanding entries in queue segment,
it could occur that entry.commit() gets invoked between segment.failAll()
and OutboundQueueProvider.close(). This fix to prevent this scenario.
Change-Id: Id297e7d4f10c7e31a550f94ac7d39f43e1320de1 Signed-off-by: Abbas Pareedkunju <abbas.pareedkunju@tcs.com>