synchronize access to data structures containing templates and request data