Apple Silicon weak memory ordering fix
Excerpt from Ruben's improved-dispatch MR.
Apple-Silicon weak-memory ordering fix, separable, but please keep. Required for correct concurrent folds on M-series CPUs; without it, partial sums in multi-thread reductions get silently dropped:
Also had to fix a warning that now pops up in stack.c.