lib/param: change add_to_file_list to not use a loadparm context