Fix potential infinite Wait with RabbitPublisher

Change-Id: If4b41ce005c70dc2f668dff2be288a99d4e00872
Fix race condition in publisher disposal

publisher disposal did not wait for the dequeuing thread to end in some
rare cases.

Change-Id: I927638bf274e7f2fad886801d1b3fa310b81b7ac