[PATCH 5.4 257/259] exec: Fix ToCToU between perm check and set-uid/gid usage