packer/rpc: use a pointer for maps to avoid race