Fix deadlock in send