[PATCH 6.12 520/626] cifs: Fix and improve cifs_query_path_info() and cifs_query_file_info()