[TCP]: lower stack usage in cookie_hash() function