ENG-6942: Refactor bulk loader to fix deadlock.

It is. The for loop below iterates through all the rows and inserts them one by one.