Revert "Remove support for runtime multi-threading."

This reverts revision r210600.