Added a simple concurrency test.
Introduce per-thread storage for cookie lists.