Send EOF to all git fast-import processes before waiting for any one to exit

Otherwise, we hang waiting for the first process to exit
Make path_set look more like a real container so we'll be able to  use std::inserter on it