Add thread-safe buffer.