[PATCH 6.1 39/42] attr: use consistent sgid stripping checks