Fix deadlock by configuring await to prevent capturing the synchronization context.