meta-flow: Fix and simplify mf_get_mask().