Avoid enumerating threads twice when freezing/unfreezing threads.