Fixed lock_filename assignment.