Fixes for profiles breaking templates and installing of non-default deps

Given we lock internally in the handling of individual dependencies, should we skip locking dependencies in the non-default profile while still adding them to the `Seen` set?