Buffer threadsafe update