For issue #883: make --halt-on-frozen apply only to top-level cookbooks

This is a draft patch without tests for discussion purposes and to get the ball rolling (for issue #883).