Synchronize Writes to JSON file in Ride Logger

Added intrinsic lock on write buffer to json file so that writes will not mix and produce invalid json.  Also cleaned up white space in ride logger app.