s3: libsmb: Add cli_smb2_chkpath() and use from cli_chkpath().