Halliburton posts third-straight quarterly loss on shale slump