net80211: refactor scan_signal()
- Pass scan state and additional internal flags as a parameters.
- Add locked version.
Tested with:
- Intel 3945BG, STA mode.
- RTL8188EU, STA mode.
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5148