To release any stock from collateral first, you ensure sufficient margin under margin trading segment in terms of Stocks or Cash equivalent and then you should move stocks out of collateral just by right clicking on collateral stock.