Fixing background crashes

- Attempting to retrieve the user agent in `SFSDKWebUtils` on a background thread was crashing.
- Initiating the OAuth User Agent flow from a background thread was crashing.
dispatch_sync to main thread is okay, if you're not on the main thread
Merge pull request #386 from khawkins/background_auth_crash

Fixing background crashes