Added variables in KThread to track thread scheduling statistics.
Added private logfile descriptor and initialization.
Removed statistic tracking within KThread. Will track in Scheduler
instead for greater flexibility.
Changed KThread.threadState to protected (from private). May revert in
future.