testing/queue: make tests with go -race happy