hostapd: Fix segmentation fault when calling hostapd_cli all_sta