Make Redcarpet Markdown renderer thread-safe

The Redcarpet library is not thread-safe as described in Since we instantiate
the Redcarpet renderer in a class variable, multiple Sidekiq threads
can access the work buffer and corrupt the state. We work around
this issue by memoizing the renderer on a thread basis.

Closes #36637
87 jobs for sh-thread-safe-markdown in 70 minutes and 2 seconds (queued for 4 minutes and 3 seconds)