Remove zombie alsa hook capture thread leak.

Also make sure that the alsa hook thread code is async signal safe by
blocking signals from the thread.