Add check when locked thread has no owner, or if locked thread does not exist anymore.
Merge pull request #7 from christ66/ZD-20184

Add check when locked thread has no owner, or if locked thread does not ...