tool_xattr: Use 'CURLcode result' for curl result codes