retry on mysql error of lock timeout