Restarting transaction after deadlock