Change dispatch_safe macro to async from sync.