packer/plugin: fix data race reading stdout in Client