fixes bug where +sendSynchronousRequest: would be called on main thread

Fixes bug where +sendSynchronousRequest could be called on main thread and potentially locking the main thread for a long time.