move ring_buffer.lua to ffi folder