add lock in serial port write method
Update README.md
Merge pull request #4 from wenhuix/master

merge read lock