President Vladimir V. Putin’s past with the K.G.B. is core to his identity as Russia’s leader. That was evident in last week’s prisoner exchange.