trust anchors: use parallel-safe temporary name

Previously multiple kresd processes might use the same .lock file at
once and thus have a race between writing and renaming.  That could
happen relatively often if starting many instances *at once*.
24 jobs for ta-parallel in 62 minutes and 24 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Build
passed #159464
amd64 linux docker
build:clang:linux:amd64

00:00:42

passed #159463
amd64 linux docker
build:linux:amd64

00:00:44

passed #159465
amd64 linux docker allowed to fail
srpm

00:00:24

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

00:01:28

passed #159479
privileged
distro:epel-7

00:02:20

passed #159478
privileged
distro:fedora-27

00:03:13

passed #159471
docker
doc

00:00:50

passed #159470
amd64 linux docker
installcheck:linux:amd64

00:01:10

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

00:01:41

passed #159467
docker
lint:c

00:02:47

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

00:01:24

passed #159466
docker
lint:lua

00:00:40

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

00:03:39

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

00:03:54

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

00:03:55

passed #159469
amd64 linux docker
test:linux:amd64

00:01:11

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

00:01:20

 
  Respdiff
passed #159480
respdiff
respdiff:fwd-tls6-kresd.udp6

00:19:09

passed #159481
respdiff
respdiff:fwd-udp6-kresd.udp6

00:25:09

passed #159485
respdiff
respdiff:fwd-udp6-unbound.tcp6

00:51:11

passed #159486
respdiff
respdiff:fwd-udp6-unbound.tls6

00:57:41

passed #159484
respdiff
respdiff:fwd-udp6-unbound.udp6

00:44:10

passed #159483
respdiff allowed to fail
respdiff:iter.tls6

00:37:40

passed #159482
respdiff
respdiff:iter.udp6

00:31:10

 
Name Stage Failure
failed
lint:clang-scan-build Test
  CCLD	modules/hints/hints.so
CCLD modules/cookies/cookies.so
CCLD modules/bogus_log/bogus_log.so
scan-build: 29 bugs found.
scan-build: Run 'scan-view /builds/knot/knot-resolver/scan-results/2018-08-07-132612-14-1' to examine bug reports.
Uploading artifacts...
scan-results: found 34 matching files
Uploading artifacts to coordinator... ok
id=159468 responseStatus=201 Created token=YjD_y-yh
ERROR: Job failed: exit code 1