fixed memory corruption caused by send/recv thread race (open 2 handle for one device), added PcapFileInputStream.getPosition()