properly handle null channel in lwt_kthd_create