Change uid comparisons from list() to set(), as ordering is not guaranteed for map fields.
Change uid comparisons from list() to set(), as ordering is not guaranteed for map fields.

PiperOrigin-RevId: 296437279
Change-Id: I0715e9c5f69669cf2c073abe986cddc113894d79

deepmind/dm_env_rpc