adding store lock so that databases cannot access the same set of files

adding store lock so that databases cannot access the same set of files at the same time. this prevents corruptions in Lucene seen during customer use