I've been reading about the 'net that Sony did indeed voluntarily surrender the rights back early to Marvel Studios. I've not seen any type of official write up about this but people keep saying this like it's gospel. Just surrendered the rights.
I wonder then if there is a clause in the contract with wording akin to, "At any time we can defer the rights back to lending studio". However the legalese would be phrased.