Scan pending flag is maintained per adapter but it is getting
reset only when all the scans on all the adapters are
completed.
Update logic to reset scan pending flag when there is no pending
scan on that particular adapter.
Change-Id: If019f6619fa11a505c489a12474b5f550982a727
CRs-Fixed: 990466