* offload PCAP writing to background thread * use blocking_queue between writer and clients to make it thread-safe * add basic test case this fixes point 1-3 of #2161