fixes #6843 - use the new template locking mechanism in foreman
Minimum version is now 1.6