Update pollLockedState.js

simplifying for bugzilla test case