close_lock_file(): if close fails, roll back