CookieJar: made thread-safe.