Checking for ioctl() return code in GetMacAddress()

Just like the others ioctl() calls.