Added ThreadDeadlockHealthCheck.

Closes #343.