[Git][ghc/ghc][master] rts: fix rts_clearMemory logic when sanity checks are enabled