Issue #25: Synchronizing calls to select() and API calls in -close to prevent deadlock.
Issue #25: Synchronizing calls to select() and API calls in -close to prevent deadlock.

armadsen/ORSSerialPort,kouky/ORSSerialPort