shared: Add test workaround for set label

In order to let tests set_label in order to create groups to be used
by buxton add a temporary workaround to look at an environemnt variable
that when set to "0" will skip the check for root.