Decrease CPU utilization on recv thread

If the non-blocking call to pcap_dispatch returns 0 (e.g. no packets
were processed), instead of restarting the loop, sleep for 1ms.