Lock when writing pending buffers