Update buf_threaded.c