Revert "Improved carton.lock compatibility" - reverted for compatibility with Template::Toolkit

This reverts commit 441f109a8b6ed0d85b5e0c931f3f9bdb88225d05.
for compat with libxml-perl