[PATCH/RFC] audit: improve GID/EGID comparation logic