configtree: T6180: add masking function mask_inclusive
(cherry picked from commit b2248b68afac795ad391b7203117d6d40a7ba6ed)