Move from libtask to lthread & ltchan.