You mean the OS is freezing/unresponsive? Or the whole machine? It might be a built in safetyguard, since the OS can no longer read the CPU temp, just for safety it locks the machine, so as to not have it overheating. It would make more sense the fans going full speed, but...
Maybe you can find out more at an Apple Store. Good luck. I've been having lots of KP's lately, and am hesitant to bring it in, because it is my main machine and can't really do without at the moment. But they told me to bring it in a the beginning of the week, so it could be I get it back that same week. Maybe something to consider if you're planning of taking the machine in for repair.
Good luck.