restructure xml parser
smb/cifs: Fix race condition between thread during SMB connect