libmemif: unmask head/tail pointers fix, additional ring info in memif_queue_details_t