lib: fix warning from ll_addr_a2n
Recent versions of strchr() propogate const char *.
This triggers warnings about lost of const.
Resolve this by reworking the loop parsing hex values.
This also adds checking for garbage after the hex value.
Also:
- arg is no longer modified
- Trailing garbage ("00:11:zz", "00:11:") are now rejected
- An address longer than len bytes now fails
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>