replace TCP session's write buffer with a multi-thread safe one.