Fix key upgrade on begin

Since getKeyCharacteristins uses a cache file it is it is no longer
guarantied to call upgrade key any more. So we have to put the upgrade
key logic back into begin. Also we need to get extract the key blob data
from the key blob object every time the key blob could have changed.

Test: enroll a password, bump the patch level, rebuild and flash.
      Then attempt to unlock the device with the password.
Bug: 120063166

Change-Id: If91c30d3f0599452b43923255bb88fee490beb21
1 file changed