Add some basic locking for sending.