filter out lock files from the templates directory

Filter .lock files so they don't end up in our templates.