Add a function to open a serial port in blocking mode