Is it feasible to implement a version of `emscripten_dispatch_to_thread` with synchronous returns like `emscripten_sync_run_in_main_runtime_thread`?