Rename @locals to @_locals in Thread to avoid conflict with Rubinius. Closes #11831