vp8: Fix pthread_cond and pthread_mutex leaks