keymaster: storage: Reconnect to storage server when needed

Check if the connection to the storage server is still valid, by
discarding the current transaction, before returning a new instance.
This prevents errors if the previous session was created from the
bootloader and the current session if from Linux.

Bug: 137050199
Change-Id: I60bc14955f5f852831c4bb8923121e4ed9cd11a9
2 files changed