vp9_dthread: interleave mutex/cond alloc+init

this ensures both are properly initialized when calling _dealloc().
+ check the arrays before access

Change-Id: I789af39b41c271b5cb3c029526581b4d9903b895
1 file changed