A territory only counts if it cannot be taken
In Modern Ming-Mang a wall is secure only when no enemy move can ever capture a piece in it. White's apparently complete wall in one diagram is still under threat because Black can place a piece that threatens to return and capture four.
From Schmittberger, 1992, p. 97. Schmittberger, R. W. (1992). New rules for classic games. New York: John Wiley & Sons. ISBN 978-0-471-53621-5.