Bug 952984: Fix barriers around matchResultTemplateObject, r=terrence