Dubai Agrees Refinancing Deal