What do they do to disable the folding stock?
There was a push shaft on a spring that enabled it. They took out the spring and made the shaft a interference press fit.
That is it.
Simple to reverse but then it becomes a Class III weapon.