Auto-retry on deadlock error