Added a read write mutex to the render template cache.