Thread safety when passing function arguments between type templates and
source templates