fix racing issue with using ResponsePipe.WriteTo
fix racing issue with using ResponsePipe.WriteTo

* WriteTo should block until both writeResponse and writeError
  are done. Or risking parallel read / write of the error writer
  contents.

yookoala/gofast,yookoala/gofast,yookoala/gofast,yookoala/gofast