Fix deadlock from trying to do a dispatch_sync on the main queue when already on the main thread