Avoid enumerating threads twice when freezing/unfreezing threads.
Small changes in style.
Added missing call for ProcessThreadIPs().
Small change in style.
Removed excessive optimizations.