msmouse: Fix segfault caused by free the chr before chardev cleanup.