curl_path: make Curl_get_pathname use dynbuf ... instead of malloc and memcpy - unit test 2604 verifies Curl_get_pathname() Closes #13550