This adds the locking from the SQLite branch, in preparation, so that we do not inadvertently permit running an instance of each.
This adds the locking from the SQLite branch, in preparation, so that we do not inadvertently permit running an instance of each.