Merge "Make RunAgentThread ensure thread attach is possible."
am: 716f34dd55

Change-Id: Id8a2fe6321308dd6d18c3163e3186ec2eace77f3