Snack maker Mondelez International Inc. or any other potential bidder for Hershey Co. is up against not only a board that indicated it doesn’t want to sell, but a secretive, controlling shareholder—and the state’s top law officer. No deal would happen without the blessing of Hershey Trust Co., which controls 81% of the company’s voting power and 8.4% of its common stock.