Fixed read stream unlocking bug