Change parameter type of pStreamName, pStreamScope, pStreamScopeNode from CL_INOUT to CL_IN to avoid losting value when RMD timeout. It leads to NULL pStreamName return to the callback & then mutex lock of the stream cannot be released.