attr: Provide nla_is_nested() function

Signed-off-by: Thomas Graf <tgraf@suug.ch>