Example usage of the mbed_stats_thread_get_each API.