(#2391) - improve idb bulkDocs perf

Improve the performance of bulkDocs in idb
by optimistically inserting into the by-seq
store and then recovering from the
rare error only when necessary.
Oh yeah, I also got rid of `shift()` here. @calvinmetcalf would approve.