fix issue #10: deadlock when a thread exits prematurely for a local rsync

fixes https://github.com/perlundq/yajsync/issues/10

properly close all channels being used by a thread at thread exit