[PATCH 6.15 333/480] apparmor: fix loop detection used in conflicting attachment resolution