wrap whole streamid fxn in one lock