RavenDB-1108 locking indexes when running in memory fails and test for it