Expire old cookies before finding a cookie in CookieManager#add.
Before this fix, CookieManager#add find a cookie, and then expire old cookies,
so the found cookie might be removed before being updated.