datapath: Use masked flow when validating actions.