lockfile: In tests, also verify log messages.