Fix test failing when run close to the end of the day.
Prefix `gid`/`sgid`/`global_id`/`signed_global_id` with to_.

This prevents clashing method names. For example apps modelling file system
permissions might have a group id aka gid accessor.

This also clarifies global ids as a conversion like `to_s`, `to_a` etc. methods.