Override the userHomesHomeFolderProvider bean definition and inject the new property templatePath pointing to the template folder.
Create the file tomcat/shared/classes/alfresco/extension/user-homes-custom-context.xml with the new bean definition: