Add params.through table name support to Model.hasMany()
Retry on deadlock