(ts-dequeue queue) safely removes and returns the oldest object from a queue. If no objects are available, it blocks until an object is added.