Increment m_threads_created in a more sensible place