Dynamically deleting a stream causes a deadlock

If you don’t want to test my code. You can use deepstream-test5-app without my code.
Because destroy_pipeline function also has a chance to trigger a deadlock.
Call destroy_pipeline function in a loop has a chance to trigger a deadlock.
It should be noted that I use RTMP stream. It is recommended that you also use RTMP stream