Supported upgrading from Shared to Owned.

From: Jie Yu <yujie.jay@gmail.com>
Review: https://reviews.apache.org/r/15112