Whitelist TIMED_WAITING threads

The old way of detecting zombie threads seems to have been obviated
(possibly by a Java update). Make our zombie detection more lenient. This
should be okay but we will need to monitor. Before this fix loading sample
images was problematic with LegacyCommandThreads running for sometimes
minutes after the sample image was loaded.