Flush stdin from within chroot archive

This makes sure that we don't buffer in memory and that we also flush
stdin from diff as well as untar.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Merge pull request #9573 from crosbymichael/flush-stdin

Flush stdin from within chroot archive