libcli/smb: add smb311_capabilities_check() helper