I realize this is a very rare/niche situation, but it's worth a bug report.
If you level Djinn's mark from 2 to 3 while you already have Mark stacks up on an enemy it will go to 8 stacks as normal but any subsequent hits will refresh it, but not add any more stacks.