bug-20735:  Add locking on send to fix segfaults on shutdown