ENG-6942: Refactor bulk loader to fix deadlock.

Does this mean insert will block till a task drains the queue?