dup() the input fd for fast-import used for remote helpers