adding store lock so that databases cannot access the same set of file sat the same time. this prevents corruptions in Lucene seen during customer use
added test for readonly databases not being allowed to share store files