client: fix segfault during Fork() because *bytes.Buffer(nil) != nil
Add test and minor refactor on nil bytes.Buffer fix
Merge branch 'dgryski-fix-fork-segfault'