exec: Fix ToCToU between perm check and set-uid/gid usage (CVE-2024-43882) | HOL Guard CVE