New method dispatch_sync_on_main().