Change the way how thread-local managers obtain underlying manager instances.

Change-Id: I4702ea376ecabc489c07847a6ac55ce0c793f514