Clear lock state when clicked `X` button