Fixed inverted logic for deciding if a pin is locked