queue: Work around periodic segmentation faults (GC bug?)