Adds class method to enable global_uid

We're disabling global_uid in certain classes in individual tests, those require deterministic ids and need to re-enable them afterwards.