lock check