Revert "SPARK-1686: keep schedule() calling in the main thread"

This reverts commit 66680150aa705bf301f79367647e671cb5ef9e21.