don't store the occupied gun mod slots, instead recalculate them

Solves #5458, fixes #5482 and http://smf.cataclysmdda.com/index.php?topic=5087