allocate tcp channel buffer per thread instead of per channel
fix close busy loop