Fix rez perms

If perms are changed on object while inside inventory, when its rezzed it will revert to original perms from last time it was set in world. This fix applies perms from inventory item to the object during rez.