Utilize bitshifts correctly in signals-mach.c when storing/reading the previous GC state (#53868)
I have not succeed in writing a test for this, but this was found on a
CI hang together with @keno and @vtjnash.
In essence if we hit a safepoint while GC_SAFE things can go wrong
<img width="748" alt="image"
src="https://github.com/JuliaLang/julia/assets/28694980/7d8170ee-11ab-43de-9bb1-9219aa5a2d80">