pthread_mutex -> uv_mutex
fix segfault adding elements to an initialized window