Avoid deadlock by using dispatch_async instead of dispatch_sync

See Issue #91.