retry on mysql error of lock timeout

@danhodge 

Retry on `Mysql2::Error: Lock wait timeout exceeded;`
I like having pry loaded for specs, but if you don't want it here, please remove it instead of commenting it out.