[sanitizer] More checks in mbstowcs-like interceptors.