[GHC] #16366: Strict version of `foldlM`.