ITS#9529 pcache: fix consistency_check locking

Status Job ID Name Coverage
  Build
canceled #6613
build-gnutls-mit-standalone-lloadd

canceled #6611
build-no-threads-no-slapd

canceled #6612
build-openssl-heimdal-lloadd