fixes #6843 - use the new template locking mechanism in foreman

I see, it does now.