Unlock mutex on thread cancellation
Merge pull request #166 from ClearwaterCore/ciscofix

[Reviewer Rob] - Unlock mutex on thread cancellation