sniffer: use subprocess.communicate instad of locking

Signed-off-by: Marek Puzyniak <marek.puzyniak@tieto.com>