* keydb.c (keydb_add_resource): Register a lock file.