Fixed typo and marked ThreadLocals like other real classes

While you're here would you mind changing "are automatically created and used by in Java actions" to "are automatically created and used by Java actions"?