kernel: Fix gathering of runtime thread stats The function k_thread_runtime_stats_all_get() now populates the current_cycles field in the thread runtime stats structure. Resets the number of cycles in the CPU's current usage window once the idle thread is scheduled. Fixes the average_cycles calcuation. Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>