Add lock check missing from waitUntilFree method.
Merge pull request #122 from broady/concurrent

Add lock check missing from waitUntilFree method.