datapath: Add ref counting for flows.