fixed issue RavenDB-2071 index lock mode saves but throws an error