slcan: Port write_wakeup deadlock fix from slip