My objective is exactly the same as in this question, however, I would like to achieve this same effect with \newtcbtheorem from the tcolorbox package. For example
\documentclass{article}
\usepackage{nameref}
\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\newtcbtheorem{thm}{Theorem}{}{thm}
\begin{document}
\begin{thm}{My awesome theorem}{awesome}
Isn't this theorem so awesome?
\end{thm}
This is a reference to \nameref{thm:awesome}.
\end{document}
should print "This is a reference to My awesome theorem.".
Unfortunately, the answer to the linked question no longer works if I use \newtcbtheorem instead of \newtheorem. Is there a way to modify that answer to work in this case?
(Note that wrapping the \begin{thm}\end{thm} created by a \newtheorem call in a \tcbenvironment is not an option for reasons not mentioned here.)

\usepackage{xpatch}used for though (I removed this and it still seemed to work). – Jonathan Gleason Jun 21 '16 at 08:05\renewcommand. – Jun 21 '16 at 08:08\@currentlabelnameor\NR@gettitleas standard for\new@tcbtheorem. It wouldn't hurt much to have it there, ifnamerefis not used. Making it an selectable option would be a little bit ugly... – Thomas F. Sturm Jun 22 '16 at 08:07