Don't join threads that are already dead.

Refs #4990