Prevent the counter cache from being decremented twice

when destroying a record on a has_many :through association.
:destroy method has own counter_cache callbacks.
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