Middleby is buying Masterbuilt Holdings for $325 million. The company owns two brands of barbecue and outdoor cooking devices, Kamado Joe and Masterbuilt. The deal is scheduled to close this month.