blobmsg: add blobmsg_parse_attr function