Fixed deceptive ThreadQueue example code

I wrote the example when writing the class as an initial design goal,
but then it changed quite a bit. Thus, since I don't want to have to
re-read the code every time I use this class, I rewrote correct example
code.