qcacmn: Avoid race condtion in wlan_serialization_pdev_scan_status

wlan_serialization_pdev_scan_status is used to check whether
there is scan cmd in active or pending list,  don't need to
check details of each node in list.

While checking details of a node in list by wpa_supplicant,
the node may be removed by mc thread in race condition.

Change-Id: I019869c23ebb7d6e157babf5ad6eaf0668ff842a
CRs-Fixed: 2268619
1 file changed