[PATCH openEuler-22.03-LTS-SP1 3/4] file: Factor files_lookup_fd_locked out of fcheck_files