hostapd: truncate default mac file before adding entries to it (#13797)