Merge pull request #12748 from dm1try/fix_counter_cache_for_through_association

Fixes #11079, prevent the counter cache from being decremented twice when destroying a record on a has_many :through association
Conflicts:
	activerecord/CHANGELOG.md