Revive SoftapControllerATH

Support for legacy ar6000 chipsets. Backported from CM's Gingerbread
branch, with various changes to make it work correctly with current
netd, and a fix for a hostapd initialization race condition.

Change-Id: I6d99b6f1fdece1346a8034abf99fe703476565a4
Fix race condition in pthread_create()

Do not send "&this->mThread" to pthread_create() as newly
created thread can "delete this" before pthread_create() saves
thread id. This would lead to heap corruption.

Change-Id: I9c4cd5e1002b85985514a36ae542778a783db6fb