Brazil’s state-controlled oil company Petroleo Brasileiro posted its third-straight quarterly loss on Thursday as oil prices and production fell and a weaker currency boosted debt costs.