fixes #4703 - reset_counters doesn't work on rails 3.2.8 for has_many :through