findOutput

return the output index corresponding to this locking script