Merge "Wait for GC to finish in ThreadList::~ThreadList"