Fixed concurrency issue in use of FFMpegHLSEncoderEngine.