> class_count_mutex is used without having been initialized. The fixes that.
Thanks, applied - r8198leo