open_lock_file
ret = open_lock_file(context, db->hdb_name, &old_lock_fd);
ret = open_lock_file(context, new_name, &new_lock_fd);
ret = open_lock_file(context, db->hdb_name, &d->lock_fd);