Optimize update_thread_counters() / update_thread_data()
- merge both functions into one, but retain backward compatibility
- save one or two DB queries
- recount replies counter in replies +1 case