mbuf: use macros only to access metadata