deadlock in webkit-gtk3 + icedtea-web - further cleanups of related global mutexs and condition variables okay ajacoutot@, landry@