Unfortunately, this isn't possible. A sub account can't be converted into a master account. The only real option is to create a new master account from scratch.