Keeping logs.json file open as a write lock during update