Set RW mutex - fix #2
Merge pull request #5 from danielchatfield/fix-mutex

Set RW mutex - fix #2