Try to unlock the keyring before querying it