Use builtin reader/writer lock on Windows
Merge pull request #1342 from markbenvenuto/win_rw

Use builtin reader/writer lock on Windows