Membrane instantons from a semiclassical TBA