Supported upgrading from Shared to Owned.

From: Jie Yu <yujie.jay@gmail.com>
Review: https://reviews.apache.org/r/15112
Fixed race condition that caused Authenticatee process to deadlock.

Review: https://reviews.apache.org/r/15138