Here's a crazy idea. I have no idea if something like this would work, but maybe you could try it on some test hair first. What about hot glue for masking? It peels away from certain surfaces so easily, and once dry maybe it would provide a solid blockade to prevent bleeding? You could set up your lines with hot glue barricades.
Like I said, I have no idea if that would actually work, you'd have to like, coat the hair sections all the way around, not just on top layer to prevent bleeding, and I have no idea how nylon hair reacts to hot glue. Maybe a caulking gun, like the silicone ones, would accomplish the same thing without the heat. No idea though! Raindrop's suggestion made this pop into my head.