fix locking for ensureIndex