lock for templ to string helper