[mcs] Add parent storey reference only when this is not captured directly. Fixes #19077