Fix a typo in ProcessInfo::encode.

We were sending the uid as the gid.