[Reviewer Matt ] - Unlock mutex on thread cancellation

Fixes a problem seen at Cisco on a single core homestead node.