Use double checked locking to remove sync block
Merge pull request #361 from stuartwdouglas/master

Use double checked locking to remove sync block