Fixed scale up and down of shared locks -> exclusive locks to avoid deadlock on indexes (reported by Partner 1)