add mutex lock arround RTMP_Init & RTMP_Close