Extend Queue.Queue to ensure uniqueness (with a set).