Subordinate locking.

Added UT.