Try to allocate the Android proxy while still on the UI thread.

This should allow immediate start of the proxy, rather than
switching back to the UI thread to initialize the proxy later.

If we are being initialized on a different thread, then this will still
switch to the UI thread.