Fix 'double encryption' bug

When you log into an org without passcode, followed by an org with passcode, we were attempting to re-encrypt background accounts twice, which was leading to decryption errors. The reverse flow works fine.