Lock and bufferline update