The tax man wants a great share of producers’ profits from asset sales. Roll the deal into a like-kind exchange, instead.