msvcrt: Use ismbcodepage instead of mb_cur_max in mbcodepage dependent functions.