support FLAGS_max_matches == 0 to mean unlimited
Update gocheck to its new source.
Rework thread_queue primitive.

Add a close() method, inspired by Go's. Use that instead of counting
request/responses in the main search code.
Port the chunk allocator to the new abstraction.
Only pass gtest flags when building tests.
Put an expensive assertion behind an ifdef