Yep, all these type of security measures do is harass law abiding people while doing nothing to stop the real threats.
I was thinking about this - the only part of a gun that must be metal is the barrel and the brass cartridge casing. Those are the first things I'd look for, assuming the system is capable of resolving objects that small.
... and before someone asserts it, yes, there are guns in existence with ceramic barrels, and there are guns in existence that shoot caseless ammunition. Neither are obtainable, and they wouldn't work in combination as one of the primary benefits to using metallic cartridges is that they carry a large amount of the heat away from the barrel when ejected.
Adding that metal to a firearm doesn't add that much mass but those parts would increase the profile of the gun due to their size/shape/area covered in the eyes of a image sorting algorithm.
Can these detect disassembled guns? I doubt they can understand the signature of the sum of parts.