resolve: use more sensitive detection of KR_STATE_FAIL

I don't know any particular case where the bit-test would succeed and
equality wouldn't, but it seems better to take no chances.
25 jobs for bogus-clean in 1 minute and 46 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Build
failed #283011
docker linux amd64
build:clang:linux:amd64

00:01:25

passed #283010
docker linux amd64
build:linux:amd64

00:01:46

passed #283012
docker linux amd64 allowed to fail
srpm

00:01:27

 
  Test
skipped #283019
docker linux amd64
deckard:linux:amd64
skipped #283024
privileged
distro:epel-7
skipped #283023
privileged
distro:fedora-29
skipped #283018
docker
doc
skipped #283017
docker linux amd64
installcheck:linux:amd64
skipped #283020
docker linux amd64
installcheck:valgrind:linux:amd64
skipped #283014
docker
lint:c
skipped #283015
docker allowed to fail
lint:clang-scan-build
skipped #283013
docker
lint:lua
skipped #283022
docker linux amd64
respdiff:iter:udp:linux:amd64
skipped #283016
docker linux amd64
test:linux:amd64
skipped #283021
docker linux amd64
test:linux:amd64:valgrind
 
  Respdiff
skipped #283025
respdiff
respdiff:fwd-tls6-kresd.udp6
skipped #283026
respdiff
respdiff:fwd-udp6-kresd.udp6
skipped #283030
respdiff
respdiff:fwd-udp6-unbound.tcp6
skipped #283031
respdiff
respdiff:fwd-udp6-unbound.tls6
skipped #283029
respdiff
respdiff:fwd-udp6-unbound.udp6
skipped #283028
respdiff
respdiff:iter.tls6
skipped #283027
respdiff
respdiff:iter.udp6
skipped #283032
respdiff
resperf:fwd-tls6.udp-asan
skipped #283033
respdiff
resperf:fwd-udp6.udp-asan
skipped #283034
respdiff
resperf:iter.udp-asan
 
Name Stage Failure
failed
build:clang:linux:amd64 Build
make[1]: *** [Makefile:83: build_so/ac_slow.o] Error 127
clang++-5.0 ac_lua.cxx -c -fvisibility=hidden -Wall -I/usr/include/luajit-2.1 -O2 -Werror -Wno-error=unused-command-line-argument -ggdb -fPIC -I/builds/knot/knot-resolver/.local/include/lua5.1 -MMD -o build_so/ac_lua.o
make[1]: clang++-5.0: Command not found
make[1]: *** [Makefile:83: build_so/ac_lua.o] Error 127
make[1]: Target 'ahocorasick.so' not remade because of errors.
make[1]: Leaving directory '/builds/knot/knot-resolver/modules/policy/lua-aho-corasick'
make: *** [modules/policy/policy.mk:10: modules/policy/lua-aho-corasick/ahocorasick.so] Error 2
make: Target 'all' not remade because of errors.
ERROR: Job failed: exit code 1