Items have a PICKUPABLE flag, which can be used for this, but there is no player command to set it. To be able to use it without problems, items should also have a flag that would say whether players are allowed to make it unPICKUPABLE, and if so, who will (owner, everyone).