buf_alloc(): lock the buffer with LK_NOWAIT
(cherry picked from commit 5875b94c74935affb47c7e059011f80ee2f6bf67)