xbuf: add compact operation

Use it in OVSDriver to slightly reduce memory usage.