packer: fix data race in communicator