curl: split curl_find_state/curl_init_state