Revert "Enforce main thread for api calls."

This reverts commit 2e5625dbd88d312b6a642120defaf9cf2e8ec313.