vlib: improve enqueue_to_next buffer indices extraction