Fix exclusive lease usage in transaction for lib/gitlab/counters/buffered_counter.rb
See original issue in #440368 (closed)
Problem: commit_increment!
updates counters using an exclusive lease while in a counter_record.transaction
Ask: rework the logic to move the exclusive lease out of the transaction block if possible
Edited by Sylvester Chin