Revert "Add hOpenSerialWithFlags & openSerialWithFlags"

This reverts commit a064282ea792cea11476201f05dcabb753ef9164.
Add openSerialWithLock & hOpenSerialWithLock

These functions will try to gain exclusive access to the serial device.