[IOT-1801] Implement OCF Security CR1339
1. Use the initial Ownership Transfer session even after setting-up
the Owner Credential, when onboarding Servers based on OCF 1.0 -
rather than closing that session and establishing a new one.
2. Posting the Owner Credential ACL might fail for older Servers.
In that case, close the initial Ownership Transfer session and
establish a new session, for compatibility with those older
Servers.
Change-Id: If242c0af4ec05ad9ca144c274ee5385bc7738d92
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17279
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>