Switch the serial port to blocking after opening

The serial port must be opened non-blocking to avoid waiting for
carrier detect during open, but leaving it set to non-blocking
causes later writes to fail with "Resource temporarily unavailable".
Switch the fd back to blocking mode after opening.
Merge pull request #4 from colincross/master

Switch the serial port to blocking after opening