Make server sound thread optionnal

This patch makes the server-side sound channel thread optionnal, and
exposes functions to handle channel traffic from the outside.
Merge pull request #1937 from hardening/sound_optionnal_thread

Make server sound thread optional