HSBC's $2.1 billion Allianz deal unlocks $1.8 billion gain