lua: fix a mistake in kr_query, and simplify serve_stale

Fields after kr_nsrep got offset; fortunately only new fields were
added in there, unused from lua so far.
15 jobs for serve_stale in 7 minutes and 50 seconds (queued for 9 seconds)
Status Job ID Name Coverage
  Build
passed #131883
docker linux amd64
build:clang:linux:amd64

00:00:41

passed #131882
docker linux amd64
build:linux:amd64

00:00:39

 
  Test
passed #131890
docker linux amd64
deckard:linux:amd64

00:06:45

passed #131889
docker
doc

00:00:47

passed #131888
docker linux amd64
installcheck:linux:amd64

00:01:06

passed #131891
docker linux amd64
installcheck:valgrind:linux:amd64

00:01:38

passed #131885
docker
lint:c

00:02:17

failed #131886
docker allowed to fail
lint:clang-scan-build

00:01:15

passed #131884
docker
lint:lua

00:00:42

passed #131894
docker linux amd64
respdiff:iter:tcp:linux:amd64

00:02:51

passed #131895
docker linux amd64
respdiff:iter:tls:linux:amd64

00:03:01

passed #131893
docker linux amd64
respdiff:iter:udp:linux:amd64

00:02:50

passed #131887
docker linux amd64
test:linux:amd64

00:01:20

passed #131892
docker linux amd64
test:linux:amd64:valgrind

00:01:21

 
  Coverage
passed #131896
docker linux amd64
coverage

00:00:22

71.6%
 
Name Stage Failure
failed
lint:clang-scan-build Test
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
CCLD daemon/kresd
scan-build: 28 bugs found.
scan-build: Run 'scan-view /builds/knot/knot-resolver/scan-results/2018-04-20-151720-14-1' to examine bug reports.
Uploading artifacts...
scan-results: found 33 matching files
Uploading artifacts to coordinator... ok
id=131886 responseStatus=201 Created token=fjbYbsab
ERROR: Job failed: exit code 1