[3.0] contrib: pthreads: allow NULL initialized mutex in pthread_mutex_destroy()
libavcodec/vp9 destroys a mutex that was not initialized through pthread_mutex_init() but was set to NULL. This seems to work on all other platforms, so just allow this case in pthreadsGC2.
Fixes #26017 (closed)