Improved costume and attribute modification system

* Created an 'equipped()' lock function
* Made it so that mod scripts will self destruct if their object doesn't
pass a lock check on them.
* Created an 'is_equipped_by()' call on equipment.