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