use parens for cms::thread_guard and error if argument is not a string literal