Add TransactionTimedout for MySQL error code 1205
#30360

gcourtemanche wants to merge gcourtemanche:transaction_timedout into rails:master

We do not currently have an analysis of these two commits