From my reading of it you have $450k of shares and a loan of $150k for it.
Take out a margin loan and lodge the $450k of shares as security for it. You can then do a draw down on the margin loan and pay it directly (so don't mix it with any other funds along the way) into your current Loan...