A decision by Whiting Petroleum Corp., the largest producer in North Dakota’s Bakken shale basin, to put itself up for sale looks to be the first tremor in a potential wave of consolidation as $50-a-barrel prices undercut companies with heavy debt and high costs.