Modified the FlushToDisk method in JsonStore.cs to wait for a locked file to be released. Handy when you have multiple processes saving to the same son file at irregular intervals.