 The private-equity firms Gavilan Resources has agreed to sell itself out of bankruptcy to its drilling partner Mesquite Energy for 50 million, a stark indication of the value erosion in the U.S. shale sector. 