implement new lock for hrc_stream