add assert in lwt-chan.c