valid lock check