Inheritance is not enabled per se.
It is indeed a flag, but processing down the chain has to be done manually with an "inherited" flag.
Thats what XCACLS.vbs does.
I spent quite a few nights figuring that out how to circumvent that but alas it is inevitable.