utils/validate/net.py: simplify mac()

Also obviates a pylint warning:
salt/utils/validate/net.py:18: [W0311(bad-indentation), ] Bad indentation. Found 12 spaces, expected 8
Merge pull request #7820 from cvrebert/patch-4

utils/validate/net.py: simplify mac()