Insert yield during dequeue.

This gives a chance for another thread to enqueue, this was leading to
a kind of deadlock.