chardev: Improve error report by calling error_setg_win32()