Swap in/out xprv/xpub depending on whether wallet is unlocked.