retry on mysql error of lock timeout

@danhodge 

Retry on `Mysql2::Error: Lock wait timeout exceeded;`