(#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.