Use a thread safe deque instead of a queue

Instead of using a queue like a deque just use
a deque directly instead, a queue doesn't seem
to add much value when its used like it was.

Change-Id: I515c14bb16e18c4031f446c7176915c94b3fb8f4
Merge "Use a thread safe deque instead of a queue"