Threads that failed to start should also be counted as joined.

This prevents a possible infinite loop during loom_free().