Patch to ensure last_thread_count is always initialised.