util/SharedQueue: block all signals during wait for new items

This fixes an error associated with receiving a signal in a thread that's
waiting on the queue in a Boost.Coroutine-created stack frame.