If system.nt_sec_desc.owner or system.nt_sec_desc.group are used with smbc_getxattr_ctx() to request unresolved SIDs smbc_getxattr_ctx() returns with EINVAL. StrCaseCmp() returns with != 0 even if the strings are equal. As a workaround I've used StrnCaseCmp instead.
My fault.