added LockedState and IsLocked
Revert "added LockedState and IsLocked"

This reverts commit 60b08cf0d9868b7e8493ac49a5c835554cff4f1b.
added LockedState and IsLocked
Merge remote-tracking branch 'origin/master'