[bitcoin/bitcoin] Import key origin data through importmulti (#14021)

Fixed a bug where the keymetadata wasn’t being written to the wallet file. Also added a test for that case.