(#1731) - WIP - fix race in websql's bulkDocs

There is a race condition in bulkDocs that can be reproduced by running the full suite of
test.html?grep=test.design_docs.js-local,
where the failure is in concurrentQueries.