exec: avoid RLIMIT_STACK races with prlimit()