Added some synchronization and a queuing mechanism for clients when preparing a send.