add missing uv_mutex_init and uv_cond_init calls to encoder