MAVLinkserialport: modify to use a thread
move packetloss counters