fixes bug where sendSynchronous request 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.