pub fn read_json_file_with_lock<T: DeserializeOwned>( path: impl AsRef<Path>, ) -> Result<T, JsonError>