[mcs] Update codegen for boolean loads. Fixes #21685