+1 on the Zip Ties. in a pinch (or in bulk), awesome use.
For those that do gun photography a fair bit, and have dedicated setups or do shoots including mags and ammo, shoving an earplug in the chamber will prevent an accidental load. If you were to rack the slide, the round gets hung up on...