allow CURLOPT_INFILE to be reset

This allows CURLOPT_INFILE to be reset to defaults without resetting the rest of the CURL object.

Closes bug #64247 and #44866