(#22581) Enable profiling for puppet apply

The profiler was only selected in the networking stack and so didn't let
users test out catalog compilation profiles using puppet apply. This adds
processing of the profile setting in the apply application's setup.