Object state script can be executed only once : addlockstategroup.php
If you run addlockstategroup.php script second time then it will not work.
If you wish to execute this script again then do the following:
truncate ezcobj_state ; truncate ezcobj_state_group ; truncate ezcobj_state_group_language ; truncate ezcobj_state_language ; truncate ezcobj_state_link ; php update/common/scripts/4.1/addlockstategroup.php -sezwebin_site_admin
I required it today , because I did test upgrade last week and today I was doing final upgrade with latest database and then I just imported latest database to mysql without dropping the database and then many objects were missing the object state then I have to do above steps :-)