What happens if you are a foreigner and you choose to live there?
IIRC they did it as a political statement and have a bunch of exceptions/loopholes that more or less make it so that anyone who doesn't want to doesn't have to.
If you've got a valid green card you can own a gun, no question. Pretty sure you can own a gun on working visas as well, though there is the logistical issue of if/when the visa expires -- chances are you're not taking it with you.
Yes - my co-worker is Serbian/Canadian, has a green card, and owns a bunch of guns.
It's "mandstory"
The same way in some town in Maryland you can't feed ducks on Sunday. Its a law that is left on the book, completely ignored and largely forgotten about