South Korea’s brief lurch to martial law this week spooked markets, but rapid action by officials to restore democratic norms and reassure investors has limited the damage – at least for now.