src/channel: fix possible segfault on SVSJOIN