serialIF: replace linux pthread by std::thread.