Make the chunk loader thread wait when the queue is empty