Hello!
Just to explain. You are getting bids this high mainly for two reasons:
1) You are asking someone to things that are not necessary for resolving your query, that being to have to read documentation on something they do not normally use neither for themselves, not for their clients (here fall pretty much 85% of us here), and
2) You explained your problem and what you want to do in a very "obfuscated" way. FOr example you are talking about ID of a custom post type, instead of ID of the post of this post_type, which is what the "id" parameter of the example shortcode represents. And also saying "it works in The Loop but not outside The Loop" is not correct either. It's not The Loop that makes it work it's the_content(), which is the only hook where Wodrpress naturally evaluates shortcodes, meaning not being forced to do so.
So in summary - you want the_head() to enqueue content styles/javascript based on postmeta values of some post, basically.
Now would you please define which post do you want the_head() hooked function need to look for so to decide what to enqueue and what not? This for all cases of page content - home,single,archive and 404.
The framework has no role in that at all, which is the reason for my comment (1) above.
Kind Regards,
Dobri