Made all cookie spec implementations thread safe