Bug 839025: Refactor cycle collector thread handling to make it optional. r=mccr8