plugins/check_log: Fix wrong lock file