Disclosure: I'm the author of a competing JavaScript database (http://gunDB.io/).
Unfortunately concurrency is typically the last thing that people think about. Concurrency is the first thing we deal with in our database, because you are right, without it data gets corrupted.