MT#10551 catch innodb deadlock error and restart rating process