Change parameter type of pStreamName, pStreamScope, pStreamScopeNode from CL_INOUT to CL_IN to avoid losting values when RMD timeout. It leads to NULL pStreamName return to the callback & then it cannot release mutex lock because of invalid stream name.