My first thought was that having a second detent on the left side of the lower that locked into the pivot pin when fully seated, but which offered no readily available way to depress, would be as good as permanent.Yes. The pin would be welded so it could not be pushed out to release upper from lower. But the upper would still be free to pivot on the pin.
There doesn't seem to be enough material on my aero lower to get this done without breaking into the magwell, but the seekins one has a fence on the left side that may prove useful for it.
If this were just your gun, then a weld somewhere seems a decent choice. If this is a thought experiment should some sort of legislation come down, then something like the detent idea above seems useful. Least amount of extra work involved, uses stock parts, allows standard assembly.