Added deadlock guard for rtmp processing to eliminate rejected tasks and prematurly disconnected connections.