Lock/unlock the serial port.
Write code to open/initialize the serial port, without using linSerial
in order to allow customization of serial parameters from the command line.

