The current crunch highlights a dilemma that nations have in phasing out oil refineries as they try to transition away from fossil fuels