Saudi Arabia's sovereign wealth fund, the Public Investment Fund (PIF), has secured a $17 billion loan, which will partly refinance a loan it took in 2018.