fix bug for memory leak while adding common files

Memory leak will be triggerd when calling clear_tfile_check_list without lock.