You can only call this for an address that the node has a private key for, and that won't be the case if you called importaddress, as opposed to importprivkey. In any event preparelockunspent(from) should only be called if you need to prepare a locked unspent output.