[PATCH 6.17 130/184] sysfs: check visibility before changing group attribute ownership