curl_json plugin: use sstrerr for thread safety
curl_json plugin: style cleanups