retry on mysql error of lock timeout

@danhodge 

Retry on `Mysql2::Error: Lock wait timeout exceeded;`
So this is due to sword fighting with Travis. It was failing on the require to pry, even though it is defined in the Gemfile.