wifi: Reset SAP state when wifi thread timeout (Fail case)

Reset to failed state when timeout happen and reject future requests if
the framework is recovering the Soft AP state.
Bug: 232817913
Test: atest -c FrameworksWifiTests
Test: manual test
1. force HIDL call block at least 4 seconds since timeout value is 4
second
2. enable SoftAp via Settings
3. off/on Soft AP via shell command. i.e.
adb shell cmd wifi stop-softap && adb shell cmd wifi start-softap test wpa2 11111111 -b 2
4. SoftAp can be enabled via Settings again.

Change-Id: I504ee16bb1093abf58e35922c9e2fac30fe6c173
2 files changed