Developer Jorge Pérez is scrambling to sell thousands of condos amid a market swoon. Yet he is also buying condos on the cheap, starting with units in his own building.