RavenDB-1014 Stale indexes should not force layout changes
Fix for Index locking
fix for mono