vlib: store buffer memory information in the buffer_main