Make CKeyStore automatically known about the redeemscripts necessary for P2SH-P2WPKH
(and due to the extra checks in IsMine, also P2WPKH) spending.
This is a partial backport of Core PR11403 : https://github.com/bitcoin/bitcoin/pull/11403/commits/f37c64e477d679853a4076f2f7888568bb034e90