[PATCH 5.15 10/11] attr: use consistent sgid stripping checks