Make Serial Port thread safe