ruby-ts-mode: Don't reindent when "class" or "def" is under "ERROR"

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Don't reindent when "class" or "def" is under "ERROR" (bug#61017).
2 jobs for emacs-29 in 3 minutes and 29 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Normal
passed #62156
test-lisp-inotify

00:03:29

passed #62157
test-lisp-progmodes-inotify

00:03:18