Backport: Correct alignment of simulated mainThread field in 32-bit debug builds