determination of the lock state : locked or not.