lockState flag test