[Sema] Fix ICE due to incorrect _Bool handling in format string checking (#174684)
This cherry-picks 15365d31e6b to 22.x release branch, together with its
follow-up 312078b117 which fixes the test on ARM32 targets.
Co-authored-by: Yexuan Xiao <bizwen@nykz.org>
Co-authored-by: Leandro Lupori <leandro.lupori@linaro.org>